#!/bin/sh
CONFIG_LIBS=""-LIBPATH:C:/Program Files/gdal/lib" gdal"
CONFIG_DEP_LIBS=""C:/Program Files/OpenSSL-Win64/lib/VC/libssl64MD.lib" "C:/Program Files/OpenSSL-Win64/lib/VC/libcrypto64MD.lib" crypt32 wbemuuid TIFF::TIFF ws2_32 CURL::libcurl "C:/Program Files/MySQL/MySQL Server 8.0/lib/mysqlclient.lib" "C:/Program Files/Microsoft SQL Server/Client SDK/ODBC/170/SDK/Lib/x64/msodbcsql17.lib" "C:/Program Files (x86)/Windows Kits/10/Lib/10.0.10240.0/um/x64/odbccp32.lib" "C:/Program Files (x86)/Windows Kits/10/Lib/10.0.10240.0/um/x64/WS2_32.Lib" legacy_stdio_definitions.lib odbccp32.lib EXPAT::EXPAT psapi D:/05_Works2023/_GDAL36/depends/proj/lib/proj_d.lib"
CONFIG_PREFIX=""C:/Program Files/gdal""
CONFIG_CFLAGS=""-IC:/Program Files/gdal/include""
CONFIG_DATA=""C:/Program Files/gdal/share/gdal""
CONFIG_VERSION="3.5.0"
CONFIG_GNM_ENABLED=yes
CONFIG_FORMATS="JPEG raw iso8211 GTIFF MEM vrt Derived HFA SDTS NITF GXF AAIGrid CEOS SAR_CEOS XPM DTED JDEM Envisat ELAS FIT L1B RS2 ILWIS RMF Leveller SGI SRTMHGT IDRISI GSG ERS PALSARJaxa DIMAP GFF COSAR PDS ADRG COASP TSX Terragen BLX MSGN TIL R northwood SAGA XYZ ESRIC HF2 KMLSUPEROVERLAY CTG ZMap NGSGEOID IRIS MAP CALS SAFE SENTINEL2 PRF MRF WMTS GRIB BMP DAAS TGA STACTA OGCAPI BSB AIGrid ARG USGSDEM AirSAR OZI PCIDSK SIGDEM RIK STACIT PDF PNG GIF WCS HTTP Zarr EEDA PLMOSAIC WMS PCRaster MEM geojson TAB Shape KML VRT AVC SDTS GML CSV DGN GMT NTF S57 Tiger Geoconcept GeoRSS DXF PGDump GPSBabel EDIGEO SXF OpenFileGDB WAsP Selafin JML VDV FlatGeobuf MapML GPX SVG CSW PLSCENES WFS NGW Elastic Idrisi PDS AmigoCloud Carto MySQL MSSQLSpatial ODBC PGeo XLSX CAD ODS LVBAG"
usage()

{
	cat <<EOF
Usage: gdal-config [OPTIONS]
Options:
	[--prefix[=DIR]]
	[--libs]
	[--dep-libs]
	[--cflags]
	[--datadir]
	[--version]
	[--ogr-enabled]
	[--gnm-enabled]
	[--formats]
EOF
	exit $1
}

if test $# -eq 0; then
	usage 1 1>&2
fi

case $1 in
  --libs)
    echo $CONFIG_LIBS
    ;;

  --dep-libs)
    echo $CONFIG_DEP_LIBS
    ;;

  --cflags)
    echo $CONFIG_CFLAGS
    ;;

  --datadir)
    echo $CONFIG_DATA
    ;;

  --prefix)
    echo $CONFIG_PREFIX
    ;;

  --version)
    echo $CONFIG_VERSION
    ;;

  --ogr-enabled)
    echo yes
    ;;

  --gnm-enabled)
    echo $CONFIG_GNM_ENABLED
    ;;

  --formats)
    echo $CONFIG_FORMATS
    ;;

  *)
    usage 1 1>&2
    ;;

esac
